
<% include '/WEB-INF/includes/header.gtpl' %>
<% import static scriptlerweb.RenderUtil.render as show %>

<h1>Script details</h1>

<p>
<table>
	<tr>
		<td>Name:</td>
		<td>${request.script.name} (id: ${request.script.id}) <a
			href='/sec/script/edit/${request.script.id}'><img
			src="/images/16x16/document_edit.gif"
			title="edit '${request.script.name}'"
			alt="edit '${request.script.name}'" /></a></td>
	</tr>
	<tr>
		<td>Provider:</td>
		<td><a href='/provider/show/${request.script.providerId}'>${request.script.providerName}</a></td>
	</tr>
	<tr>
		<td>Last update:</td>
		<td>${request.script.lastUpdate}</td>
	</tr>
	<tr>
		<td>Script Language:</td>
		<td>${request.script.lang}</td>
	</tr>
	<tr>
		<td>Downloads:</td>
		<td>${request.script.downloadCount} <a
			href='/script/download/${request.script.id}'><img
			src="/images/16x16/save.gif"
			title="download '${request.script.name}'"
			alt="download '${request.script.name}'" /></a></td>
	</tr>
	<tr>
		<td>Ratings:</td>
		<td>${request.script.ratingPos} <img class="rate"
			src="/images/16x16/health-80plus.gif"
			onclick="rate(${request.script.id}, 'pos')"
			title="click to rate - positive ratings: ${request.script.ratingPos}"
			alt="click to rate - positive ratings: ${request.script.ratingPos}" />
		${request.script.ratingNeg} <img class="rate"
			src="/images/16x16/health-00to19.gif"
			onclick="rate(${request.script.id}, 'neg')"
			title="click to rate - negative ratings: ${request.script.ratingNeg}"
			alt="click to rate - negative ratings: ${request.script.ratingNeg}" /></td>
	</tr>
	<tr>
		<td valign="top">Comment:</td>
		<td>${request.script.comment}</td>
	</tr>
	<tr>
		<td valign="top">Script:</td>
		<td><textarea readonly="yes" cols="100" rows="30">${request.script.scriptSrc}</textarea></td>
	</tr>
</table>
</p>

<% include '/WEB-INF/includes/footer.gtpl' %>

